package objects;

import org.newdawn.slick.Color;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.geom.Circle;
import org.newdawn.slick.geom.Rectangle;

public abstract class Wave {
	int x,y;
	float rate, radius;
	Color color;
	Wave(int xin, int yin, float rin, Color cin){
		x=xin;
		y=yin;
		rate=rin;
		color=cin;
		radius=1;
	}
	public void update(){
		radius=radius*rate;
	}
	abstract public void draw(Graphics g);
	/*{
		if(radius>0){
			g.setColor(color);
			//g.draw(new Rectangle(x, y, x+radius, y+radius));
			g.draw(new Rectangle(x, y, radius, y+radius));
			//g.draw(new Rectangle(x, y, radius, radius));
			//g.draw(new Circle(x, y, radius));
		}
	}*/
	public float getRadius(){return radius;}
}
